import request from "@/utils/request";
export function insertIndex(data) {
  return request({
    url: "/commerce-index/insert",
    method: "post",
    data: data
  });
}
export function updateIndex(data) {
  return request({
    url: "/commerce-index/update",
    method: "post",
    data: data
  });
}
export function deleteIndex(data) {
  return request({
    url: "/commerce-index/delete",
    method: "post",
    data: data
  });
}
export function deletesIndex(data) {
  return request({
    url: "/commerce-index/deletes",
    method: "post",
    data: data
  });
}
export function enableIndex(data) {
  return request({
    url: "/commerce-index/enable",
    method: "post",
    data: data
  });
}
export function enablesIndex(data) {
  return request({
    url: "/commerce-index/enables",
    method: "post",
    data: data
  });
}
export function disableIndex(data) {
  return request({
    url: "/commerce-index/disable",
    method: "post",
    data: data
  });
}
export function disablesIndex(data) {
  return request({
    url: "/commerce-index/disables",
    method: "post",
    data: data
  });
}
export function viewIndex(params) {
  return request({
    url: "/commerce-index/view",
    method: "get",
    params: params
  });
}
export function pageIndex(params) {
  return request({
    url: "/commerce-index/page",
    method: "get",
    params: params
  });
}
export function searchIndex(params) {
  return request({
    url: "/commerce-index/search",
    method: "get",
    params: params
  });
}
